package com.yanqu.road.entity.enums.activity.jieshi;

/**
 * 灯火街市商铺类型
 */
public enum eJieShiShopType {

    Store("商铺", 1),

    Snacks("小吃店", 2),

    Vasher("瓦舍", 3),

    Ruffian("泼皮", 101),
    ;

    private String name;

    private int intValue;

    eJieShiShopType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }

    public static eJieShiShopType forValue(int value) {
        for (eJieShiShopType type : eJieShiShopType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }
}
